﻿using Framework.MiddlewareHelp.MiddlewareHelps;
using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.MiddlewareHelp
{
    /// <summary>
    /// 中间件服务
    /// </summary>
    public static class MiddlewareService
    {
        /// <summary>
        /// 注册中间件
        /// </summary>
        public static IApplicationBuilder UseMiddlewareService(this IApplicationBuilder builder)
        {
            return builder.UseExceptionHandlerService();
        }
    }
}
